<template>
  <el-dialog
    title="订单明细"
    :visible.sync="dialogFormVisible"
    top="1%">
    <el-form :model="SettleDetail" ref="SettleDetail" :inline="true">
      <el-form-item label="维修单号" label-width="120px" prop="settleId" style="float: left">
        <el-input v-model="SettleDetail.settleId" autocomplete="off"
                  :disabled="true"/>
      </el-form-item>
      <el-form-item label="送维日期" label-width="120px" prop="order.createTime">
        <el-input v-model="SettleDetail.order.createTime" autocomplete="off"
                  :disabled="true"/>
      </el-form-item>
      <el-form-item label="问题描述" label-width="120px" prop="order.descrip" style="float: left">
        <el-input v-model="SettleDetail.order.descrip" autocomplete="off"
                  :disabled="true"/>
      </el-form-item>
      <el-form-item label="总金额" label-width="120px" prop="order.totalPrice">
        <el-input v-model="SettleDetail.order.totalPrice" autocomplete="off"
                  :disabled="true"/>
      </el-form-item>
    </el-form>
    <el-table
      :data="SettleDetail.orderItem"
      style="width: 100%">
      <el-table-column
        prop="description"
        label="问题描述"
        show-overflow-tooltip
        />
      <el-table-column
        prop="stockName"
        label="配件名称"
        />
      <el-table-column
        prop="stockNum"
        label="使用数量"
        />
      <el-table-column
        prop="price"
        label="金额"
        />
    </el-table>
  </el-dialog>
</template>

<script>
export default {
  name: "Detail",
  data() {
    return {
      dialogFormVisible: false,
      SettleDetail: {},
    }
  }
}
</script>

<style scoped>

</style>
